home *** CD-ROM | disk | FTP | other *** search
/ CD BIT 75 / CD BIT 75.iso / Software / ooo / f_0020 / sbasic.jar / text / sbasic / common / 03010101.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-08-01  |  5.7 KB  |  43 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>MsgBox Statement [Runtime]</title><meta name="filename" content="text/sbasic/common/03010101"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         span.T1{
  7.                 font-weight:bold;}
  8.         </style></head><body>
  9.   
  10.   
  11.   <help:paragraphinfo state="E" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="msgbox" xmlns:help="http://openoffice.org/2000/help">
  12.   <p class="Head1"><help:paragraphinfo state="U" number="1"/><help:key-word value="MsgBox; statement" tag="kw66417_1"/><help:link Id="66417">MsgBox Statement [Runtime]</help:link></p>
  13.   <p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Displays a dialog box containing a message.</p>
  14.   <help:paragraphinfo state="E"/></help:to-be-embedded>
  15.   <p class="Head2"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>Syntax:</p>
  16.   <p class="PropText"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>MsgBox Text As String [,Type As Integer [,Dialogtitle As String]] (As Statement) or MsgBox (Text As String [,Type As Integer [,Dialogtitle As String]]) (As Function)</p>
  17.   <p class="Head2"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>Parameter:</p>
  18.   <p class="Paragraph"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Text</span>: String expression displayed as a message in the dialog box. Line breaks can be inserted with Chr$(13).</p>
  19.   <p class="Paragraph"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">DialogTitle</span>: String expression displayed in the title bar of the dialog. If omitted, the title bar displays the name of the respective application.</p>
  20.   <p class="Paragraph"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Type</span>: Any integer expression that specifies the dialog type, as well as the number and type of buttons to display, and the icon type. <span class="T1">Type</span> represents a combination of bit patterns, that is, a combination of elements can be defined by adding their respective values:</p>
  21.   <p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>0 : Display OK button only.</p>
  22.   <p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>1 : Display OK and Cancel buttons.</p>
  23.   <p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>2 : Display Cancel and Retry buttons.</p>
  24.   <p class="Paragraph"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>3 : Display Yes, No and Cancel buttons.</p>
  25.   <p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>4 : Display Yes and No buttons.</p>
  26.   <p class="Paragraph"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>5 : Display Retry and Cancel buttons.</p>
  27.   <p class="Paragraph"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>16 : Add the Stop icon to the dialog.</p>
  28.   <p class="Paragraph"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>32 : Add the Question icon to the dialog.</p>
  29.   <p class="Paragraph"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>48 : Add the Exclamation icon to the dialog.</p>
  30.   <p class="Paragraph"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>64 : Add the Information icon to the dialog.</p>
  31.   <p class="Paragraph"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>128 : First button in the dialog as default button.</p>
  32.   <p class="Paragraph"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>256 : Second button in the dialog as default button.</p>
  33.   <p class="Paragraph"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>512 : Third button in the dialog as default button.</p>
  34.   <p class="Head2"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66475" Eid="errorcode" xmlns:help="http://openoffice.org/2000/help"/></p>
  35.   <p class="Paragraph"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66475" Eid="err5" xmlns:help="http://openoffice.org/2000/help"/></p>
  36.   <p class="Head2"><help:paragraphinfo state="U" number="22" xmlns:help="http://openoffice.org/2000/help"/>Example:</p>
  37.   <p class="PropText"><help:paragraphinfo state="U" number="23" xmlns:help="http://openoffice.org/2000/help"/>Sub ExampleMsgBox</p>
  38.   <p class="PropText"><help:paragraphinfo state="U" number="24" xmlns:help="http://openoffice.org/2000/help"/>Const sText1 = "An unexpected error occured."</p>
  39.   <p class="PropText"><help:paragraphinfo state="U" number="25" xmlns:help="http://openoffice.org/2000/help"/>Const sText2 = "The program execution will continue, however."</p>
  40.   <p class="PropText"><help:paragraphinfo state="U" number="26" xmlns:help="http://openoffice.org/2000/help"/>Const sText3 = "Error"</p>
  41.   <p class="PropText"><help:paragraphinfo state="U" number="27" xmlns:help="http://openoffice.org/2000/help"/>MsgBox(sText1 + Chr(13) + sText2,16,sText3)</p>
  42.   <p class="PropText"><help:paragraphinfo state="U" number="28" xmlns:help="http://openoffice.org/2000/help"/>End sub</p>
  43.  </body></html>